package net.jumpengine.ui;

import javafx.scene.image.Image;
import net.jumpengine.bean.ImageBase;
import net.jumpengine.inter.IAction;
import net.jumpengine.inter.IClick;

/**
  * 用图片做为按钮的类
 * <br /><br />
 * <b>作者:&nbsp;</b>张天文 <br />
 * <b>日期:&nbsp;</b>2020年12月28日 下午8:59:06<br />
 * @date
 */
public class ImageButton extends ImageBase implements IClick {

	public ImageButton(int x, int y, Image image) {
		super(x, y, image);
	}
	public ImageButton(int x, int y, int index, Image image) {
		super(x, y, index, image);
	}
	public ImageButton(int x, int y, int width, int height, Image image) {
		super(x, y, width, height, image);
	}
	public ImageButton(int x, int y, int width, int height, int index, Image image, int cx, int cy, int cwidth,int cheight) {
		super(x, y, width, height, index, image, cx, cy, cwidth, cheight);
	}
	public ImageButton(int x, int y, int width, int height, int index, Image image) {
		super(x, y, width, height, index, image);
	}
	
	public ImageButton copy() {
		ImageButton btu=new ImageButton(x,y,width,height,index,image,cx,cy,cwidth,cheight);
		return btu;
	}
	
	@Override
	public IAction getAction() {
		return null;
	}
}
